package cn.edu.scau.cmi.yangqing.singleton;

public class TestMutilChairman {
	public static void main(String[] args) {
		String[] nameList = {"朱德","彭德怀","林彪","刘伯承","贺龙","陈毅","罗荣桓","徐向前","聂荣臻","叶剑英","张三","李四"};
		for (String string : nameList) {
			System.out.print("输入人名："+string);
			MutilChairman mutilChairmans = MutilChairman.getInstance(string);
			if(mutilChairmans!=null)
			System.out.println("  创建对象："+mutilChairmans.getName());
			else System.out.println();
		}
	}
}
